;(function(root){
    function renderImg(src){
        root.blurImg(src);
        var img= document.querySelector('.songImg img');
        img.src = src;
    }
    function renderInfo(data){
        var sonInfoChildren = document.querySelector('.songInfo').children;
        sonInfoChildren[0].innerHTML=data.name;
        sonInfoChildren[1].innerHTML=data.singer;
        sonInfoChildren[2].innerHTML=data.album;
    }
    function renderIsLike(isLike){
        var lis = document.querySelectorAll('.control li');
		lis[0].className = isLike ? 'liking' : '';
    }
    function render(data){      
        renderImg(data.image);
        renderInfo(data);
        renderIsLike(data.isLike);
    }
    
    root.render=render;
})(window.player || (window.player={}))